<?php
$this->pageTitle=Yii::app()->name . ' - Contact Us';
$this->breadcrumbs=array(
	'Contact',
);
?>

<h1>Contact Us</h1>

<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php else: ?>

<p>
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
</p>

<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id' => 'contact-form',
	'enableClientValidation' => true,
	'htmlOptions' => array(
		'class' => 'well',
    ),
	'clientOptions' => array(
		'validateOnSubmit' => true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model, 'name'); ?>

	<?php echo $form->textFieldRow($model,'email'); ?>

	<?php echo $form->textFieldRow($model,'subject',array('size'=>60,'maxlength'=>128)); ?>

	<?php echo $form->textAreaRow($model,'body',array('rows'=>6, 'cols'=>50)); ?>

	<?php if(CCaptcha::checkRequirements()): ?>
		<?php echo $form->textFieldRow($model,'verifyCode'); ?>
		<div>
		<?php $this->widget('CCaptcha'); ?>
		</div>
		<div class="hint">Please enter the letters as they are shown in the image above.
		<br/>Letters are not case-sensitive.</div>
	<?php endif; ?>

	<?php echo CHtml::htmlButton('<i class="icon-ok"></i> Submit', array('class'=>'btn', 'type'=>'submit')); ?>


<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>